CentOS 7
Sponsored Link

Nginx : Install
2015/08/18
 
Install fast HTTP Server "Nginx" and configure HTTP Server with it.
[1] Install Nginx.
# install from EPEL

[root@www ~]#
yum --enablerepo=epel -y install nginx
[2] Configure Basic Settings.
[root@www ~]#
vi /etc/nginx/nginx.conf
# line 38: change hostname

server_name
www.srv.world
;
[root@www ~]#
systemctl start nginx

[root@www ~]#
systemctl enable nginx

[3] If Firewalld is running, allow HTTP service. HTTP uses 80/TCP.
[root@www ~]#
firewall-cmd --add-service=http --permanent

success
[root@www ~]#
firewall-cmd --reload

success
[4] Access to the default page of Nginx from a Client with Web browser and it's OK if the following page are shown.
 
Tweet